package dao

import (
	"gorm.io/gorm"
	"time"
)

type TestPaper struct {
	gorm.Model
	UserId        int       `json:"userId" gorm:"type:int(10);common:'用户编号'"`
	TestPaperName string    `json:"testPaperName" gorm:"type:varchar(100);common:'试卷名称'"`
	ClassName     string    `json:"className" gorm:"type:varchar(30);common:'试卷分类''"`
	CreateTime    time.Time `json:"createTime" gorm:"datetime;common:'组卷时间'"`
}

func (TestPaper) TableName() string {
	return "c_test_paper"
}

type TestPaperQuestion struct {
	gorm.Model
	TestPaperId int `json:"testPaperId" gorm:"type:int(10);common:'试卷编号'"`
	QuestionId  int `json:"questionId" gorm:"type:int(10);common:'试题编号'"`
}

func (TestPaperQuestion) TableName() string {
	return "c_test_paper_question"
}
